package Test03;

public class Demo12 {
    public static void main(String[] args) {
    for(int i = 1; i <= 150; i++) {
        System.out.print(i+"\t");
        if(i % 3 == 0){
            System.out.print("foo \t");
        }
        if(i % 5 == 1){
            System.out.print("bar \t");
        }
        if(i % 7 == 0){
            System.out.print("baz \t");
        }
        System.out.println();
    }
    }
}
